package com.ximu.order.mapper;

import com.ximu.order.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ximu.order.vo.OrderVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ximu
 * @since 2023-03-18
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    public List<OrderVo> findAllOrder(int id);

    public OrderVo findOneOrder(int orderId);

    public int updateOrder(int state,int orderId);

    public int insertOrder(int userId,int carId,int paySum);
}
